﻿@model MvcAtletIS.Models.DisciplineList

@{
    ViewBag.Title = "Zoznam disciplín";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Zoznam disciplín: @ViewBag.Competition.Name</h2>

<fieldset>
    <legend>Zmazať položku</legend>

    <div class="display-label">
        @Html.LabelFor(model=>model.Name)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Name)
    </div>

    <div class="display-label">
        @Html.LabelFor(model => model.ExternalId)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ExternalId)
    </div>

    <div class="display-label">
        @Html.LabelFor(model => model.StartTime)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.StartTime)
    </div>

</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Zmazať" /> |
        @Html.ActionLink("Naspäť na zoznam disciplín", "Index", new { competitionId = Model.CompetitionId})
    </p>
}
